package com.aaa.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("oms_cart_item")
public class OmsCartItem {

  @TableId(type = IdType.AUTO)
  private Integer id;
  private Integer userId;
  private Integer productId;
  private Integer productSkuId;
  private Integer memberId;
  private Integer quantity;
  private double price;
  private String sp1;
  private String sp2;
  private String sp3;
  private String productPic;
  private String productName;
  private String productSubTitle;
  private String productSkuCode;
  private String memberNickname;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date createDate;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date modifyDate;
  private Integer deleteStatus;
  private Integer productCategoryId;
  private String productBrand;
  private String productSn;
  private String productAttr;




}
